import java.net.*;
import java.io.*;
import java.applet.*;

import com.sun.j3d.utils.applet.MainFrame;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;

//erstellt einen TCPClient
public class TCPClient{
	String ipAdd;
	int port = 6543;
	public Socket mySocket;
	
	public TCPClient(String ip){
		ipAdd  = ip;
		connect();
	}
	
	public void connect(){
		try{
			mySocket = new Socket(InetAddress.getByName(ipAdd),port);
		}catch(Exception e){System.out.println(e);}
	}
	
	public Socket getSocket(){
		return mySocket;
	}
	
	
}